<?php

/**
 *
 *
 * @version $Id: menu.php,v 1.2 2011-06-17 04:43:20 herve Exp $
 * @copyright 2011
 */

?>

<ul>
<?php
foreach($items as $item)
{
	echo '<li class="menuheader">' . $item['label'] . '<ul class="submenu">';
	foreach($item['items'] as $subItem)
	{
		$options = $subItem;
		unset ($options['label']);
		unset ($options['url']);
		unset ($options['active']);

		echo '<li>' . CHtml::link($subItem['label'], $subItem['url'], $subItem['active'] ? array (
			'class' => 'active'
		) : $options) . '</li>';
	}
	echo '</ul></li>';
}
?>
</ul>

